Optimal. Leaf size=122 \[ \frac {54 i a^3 (d \sec (e+f x))^{2/3}}{7 f \sqrt [3]{a+i a \tan (e+f x)}}+\frac {9 i a^2 (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{2/3}}{7 f}+\frac {3 i a (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{5/3}}{7 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {3575, 3574}
\begin {gather*} \frac {54 i a^3 (d \sec (e+f x))^{2/3}}{7 f \sqrt [3]{a+i a \tan (e+f x)}}+\frac {9 i a^2 (a+i a \tan (e+f x))^{2/3} (d \sec (e+f x))^{2/3}}{7 f}+\frac {3 i a (a+i a \tan (e+f x))^{5/3} (d \sec (e+f x))^{2/3}}{7 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3574
Rule 3575
Rubi steps
\begin {align*} \int (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{8/3} \, dx &=\frac {3 i a (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{5/3}}{7 f}+\frac {1}{7} (12 a) \int (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{5/3} \, dx\\ &=\frac {9 i a^2 (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{2/3}}{7 f}+\frac {3 i a (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{5/3}}{7 f}+\frac {1}{7} \left (18 a^2\right ) \int (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{2/3} \, dx\\ &=\frac {54 i a^3 (d \sec (e+f x))^{2/3}}{7 f \sqrt [3]{a+i a \tan (e+f x)}}+\frac {9 i a^2 (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{2/3}}{7 f}+\frac {3 i a (d \sec (e+f x))^{2/3} (a+i a \tan (e+f x))^{5/3}}{7 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.69, size = 100, normalized size = 0.82 \begin {gather*} \frac {3 a^2 (d \sec (e+f x))^{5/3} (i \cos (e-f x)+\sin (e-f x)) (21+23 \cos (2 (e+f x))+5 i \sin (2 (e+f x))) (a+i a \tan (e+f x))^{2/3}}{14 d f (\cos (f x)+i \sin (f x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.37, size = 0, normalized size = 0.00 \[\int \left (d \sec \left (f x +e \right )\right )^{\frac {2}{3}} \left (a +i a \tan \left (f x +e \right )\right )^{\frac {8}{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 426 vs. \(2 (98) = 196\).
time = 0.54, size = 426, normalized size = 3.49 \begin {gather*} \frac {6 \, {\left (7 \, {\left (-i \cdot 2^{\frac {1}{3}} a^{2} \cos \left (\frac {4}{3} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) - 2^{\frac {1}{3}} a^{2} \sin \left (\frac {4}{3} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )\right )} \sqrt {\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1} a^{\frac {2}{3}} d^{\frac {2}{3}} + 2 \, {\left (i \cdot 2^{\frac {1}{3}} a^{2} \cos \left (\frac {7}{3} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) + 2^{\frac {1}{3}} a^{2} \sin \left (\frac {7}{3} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) + 7 \, {\left (i \cdot 2^{\frac {1}{3}} a^{2} \cos \left (2 \, f x + 2 \, e\right )^{2} + i \cdot 2^{\frac {1}{3}} a^{2} \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 i \cdot 2^{\frac {1}{3}} a^{2} \cos \left (2 \, f x + 2 \, e\right ) + i \cdot 2^{\frac {1}{3}} a^{2}\right )} \cos \left (\frac {1}{3} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) + 7 \, {\left (2^{\frac {1}{3}} a^{2} \cos \left (2 \, f x + 2 \, e\right )^{2} + 2^{\frac {1}{3}} a^{2} \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \cdot 2^{\frac {1}{3}} a^{2} \cos \left (2 \, f x + 2 \, e\right ) + 2^{\frac {1}{3}} a^{2}\right )} \sin \left (\frac {1}{3} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )\right )} a^{\frac {2}{3}} d^{\frac {2}{3}}\right )}}{7 \, {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {7}{6}} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 114, normalized size = 0.93 \begin {gather*} -\frac {6 \cdot 2^{\frac {1}{3}} {\left (-14 i \, a^{2} e^{\left (4 i \, f x + 4 i \, e\right )} - 21 i \, a^{2} e^{\left (2 i \, f x + 2 i \, e\right )} - 9 i \, a^{2}\right )} \left (\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} \left (\frac {d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} e^{\left (2 i \, f x + 2 i \, e\right )}}{7 \, {\left (f e^{\left (4 i \, f x + 4 i \, e\right )} + f e^{\left (2 i \, f x + 2 i \, e\right )}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.27, size = 122, normalized size = 1.00 \begin {gather*} \frac {3\,a^2\,{\left (\frac {d}{\cos \left (e+f\,x\right )}\right )}^{2/3}\,{\left (\frac {a\,\left (\cos \left (2\,e+2\,f\,x\right )+1+\sin \left (2\,e+2\,f\,x\right )\,1{}\mathrm {i}\right )}{\cos \left (2\,e+2\,f\,x\right )+1}\right )}^{2/3}\,\left (\cos \left (2\,e+2\,f\,x\right )\,44{}\mathrm {i}+\cos \left (4\,e+4\,f\,x\right )\,9{}\mathrm {i}+16\,\sin \left (2\,e+2\,f\,x\right )+9\,\sin \left (4\,e+4\,f\,x\right )+35{}\mathrm {i}\right )}{14\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________